6f7f0e24da6664dbddb1de90a0a74ab71be84e94
[nextcloud-desktop.git] /
1 /*
2  * Copyright (C) 2023 by Claudio Cambra <claudio.cambra@nextcloud.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12  * for more details.
13  */
14
15 #ifndef ClientCommunicationProtocol_h
16 #define ClientCommunicationProtocol_h
17
18 #import <Foundation/Foundation.h>
19
20 @protocol ClientCommunicationProtocol
21
22 - (void)getExtensionAccountIdWithCompletionHandler:(void(^)(NSString *extensionAccountId, NSError *error))completionHandler;
23 - (void)configureAccountWithUser:(NSString *)user
24                           userId:(NSString *)userId
25                        serverUrl:(NSString *)serverUrl
26                         password:(NSString *)password;
27 - (void)removeAccountConfig;
28 - (void)createDebugLogStringWithCompletionHandler:(void(^)(NSString *debugLogString, NSError *error))completionHandler;
29 - (void)getFastEnumerationStateWithCompletionHandler:(void(^)(BOOL enabled, BOOL set))completionHandler;
30 - (void)setFastEnumerationEnabled:(BOOL)enabled;
31
32 @end
33
34 #endif /* ClientCommunicationProtocol_h */